import fs from 'fs';

const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
const { scripts, devDependencies, ...releasePackageJson } = packageJson;
fs.mkdirSync('./dist', { recursive: true });
fs.writeFileSync('./dist/package.json', JSON.stringify(releasePackageJson, null, 2));